#pragma once

#include <iostream>
#include "Protocol.hpp"

class Task
{
private:
    int _sockFd;
    CallBack handlerHttpReq; // 设置回调
public:
    Task()
    {
    }

    Task(int _sock)
        : _sockFd(_sock)
    {
    }

    void startProcess()
    {
        handlerHttpReq(_sockFd);
    }
    
    ~Task()
    {
    }
};
